import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import path from "path";

// https://vite.dev/config/
export default defineConfig({
  css: {
    modules: {
      generateScopedName: "[name]__[local]--[hash:base64:5]",
    },
  },
  plugins: [react()],
  resolve: {
    alias: {
      "@": path.resolve(__dirname, "src"),
    },
  },
  server: {
    port: 5173,
    open: true,
    host: "0.0.0.0"
  },
  preview: {
    port: 5173,
    open: true,
    host: "0.0.0.0"
  }
});
